/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.coreprincipals.polymorphism.polymorphism;

/**
 *
 * @author Bongie
 */
public class Person {
    private String name;
    private String surname;
    private int age;
    private int id;
    
    public Person(String name, String surname, int age, int id){
        this.name = name;
        this.surname = surname;
        this.age = age;
        this.id = id;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSurname() {
        return surname;
    }

    public void setSurname(String surname) {
        this.surname = surname;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
    
    public String message(){
        return String.format("Name: %s\nSurname: %s\nAge: %d\nID: %d", this.name, this.surname, this.age, this.id);
    }
}
